﻿@model IEnumerable<blacksoft.Models.Persona>

@{
    ViewBag.Title = "Index";
}

@{
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}




<div class="block big">
    <div class="titlebar">
        <h3>Proveedor</h3>
    </div>
    <div class="block_cont">
        <a href="/Proveedor/Create" class="navbutton"><span class="icon_plus">Nuevo</span></a>
        <hr />
        <table class="data-table">
            <thead>
                <tr>
                    @*<th>
                            @Html.DisplayNameFor(model => model.Nombre)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.ApellidoPaterno)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.ApellidoMaterno)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.DNI)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.FechaNacimiento)
                        </th>*@
                    <th>
                        @Html.DisplayNameFor(model => model.RazonSocial)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.RUC)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.Direccion)
                    </th>
                    <th>
                        @Html.DisplayNameFor(model => model.Telefono)
                    </th>
                    @*<th>
                            @Html.DisplayNameFor(model => model.TipoPersona)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.CargoPersonal)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.PuntosAcumulados)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.FechaRegistro)
                        </th>*@
                    @*<th>
                            @Html.DisplayNameFor(model => model.Estado)
                        </th>*@
                    <th>
                        @Html.DisplayNameFor(model => model.Email)
                    </th>
                    @*<th>
                            @Html.DisplayNameFor(model => model.Terminal.Nombre)
                        </th>*@
                    <th>ACCIONES</th>
                </tr>
            </thead>


            @foreach (var item in Model)
            {
                <tr>
                    @*<td>
                            @Html.DisplayFor(modelItem => item.Nombre)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.ApellidoPaterno)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.ApellidoMaterno)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.DNI)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.FechaNacimiento)
                        </td>*@
                    <td>
                        @Html.DisplayFor(modelItem => item.RazonSocial)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.RUC)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Direccion)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Telefono)
                    </td>
                    @*<td>
                            @Html.DisplayFor(modelItem => item.TipoPersona)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.CargoPersonal)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.PuntosAcumulados)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.FechaRegistro)
                        </td>*@
                    @*<td>
                            @Html.DisplayFor(modelItem => item.Estado)
                        </td>*@
                    <td>
                        @Html.DisplayFor(modelItem => item.Email)
                    </td>
                    @*<td>
                            @Html.DisplayFor(modelItem => item.Terminal.Nombre)
                        </td>*@
                    <td>
                        <div style="height: 3px;"></div>
                        <div class="actionbar">
                            <a href=@string.Concat("/Proveedor/Details/", item.IDPersona) class="action view"><span>Detalles</span></a>
                            <a href=@string.Concat("/Proveedor/Edit/", item.IDPersona) class="action edit"><span>Modificar</span></a>
                            <a href=@string.Concat("/Proveedor/Delete/", item.IDPersona) class="action delete"><span>Eliminar</span></a>
                        </div>
                    </td>
                </tr>
            }

        </table>
    </div>
</div>
